package com.chj.comp.common.core.feign;

import com.chj.comp.common.core.constant.ServiceNameConstant;
import com.chj.comp.common.core.util.Result;
import com.chj.comp.common.core.dto.Demo1SchedulerJobDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

/**
 * @author ：cuihui
 * @date ：Created in 2022/1/18
 * @description：demo1服务远程接口
 * @modified By：
 */
@FeignClient(contextId = "remoteDemo1Service", value = ServiceNameConstant.DEMO1_SERVICE)
public interface RemoteDemo1Service {
    /**
     * 通过ID查询
     * @param id
     * @return
     */
    @GetMapping("/demo1SchedulerJob/getDemo1SchedulerJobDetail/{id}")
    Result<Demo1SchedulerJobDTO> getTbSchedulerJobDetail(@PathVariable("id") String id);
}
